import axios from "@/utils/axios";
const prefixUrl = "/user";
export default {
  power: {
    create: "PUT:" + prefixUrl,
    update: "PUT:" + prefixUrl,
    delete: "DELETE:" + prefixUrl,
  },
  query(params = {}) {
    return axios.get(prefixUrl, params);
  },
  create(params = {}) {
    return axios.post(prefixUrl, params);
  },
  update(params = {}) {
    return axios.put(prefixUrl, params);
  },
  delete(params = {}) {
    return axios.delete(prefixUrl, params);
  },
};
